<template>
  <Child
    msg="传给子组件"
    :count="count"
    @change-count="changeCount"
    @test="test"
  ></Child>
</template>

<script setup>
import Child from './components/child.vue'
import { ref } from 'vue'

const count = ref(10)

const changeCount = value => {
  count.value = value
}

const test = value => {
  console.log(value)
}
</script>

<style lang="less"></style>
